#ifndef _H_ABSTRACTTEXTINPUT
#define _H_ABSTRACTTEXTINPUT

#include <string>

#include "winElmt.h"
#include "event.h"

using namespace std;

class abstractTextInput: public winElmt{

    protected:
        string content;
        unsigned int cursor;

    public:
        abstractTextInput();
        abstractTextInput(window*);

        virtual ~abstractTextInput();

        virtual void setCursor(int);
        virtual void setContent(string);

        virtual string getContent();
        virtual int getCursor();

        virtual unsigned char eventExec(unsigned char);

};

class actionEnterEvent: public event{
    public:
        actionEnterEvent(winElmt*);
};

#endif
